package com.zyh.appointment.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyh.appointment.domain.Appointment;
import org.apache.ibatis.annotations.Mapper;

/**
 * 咨询预约Mapper接口
 *
 * @author zhangyangheng
 * @date 2025-03-19
 */
@Mapper
public interface AppointmentMapper extends BaseMapper<Appointment> {
    /**
     * 查询咨询预约
     *
     * @param appointmentId 咨询预约主键
     * @return 咨询预约
     */
    public Appointment selectAppointmentByAppointmentId(Long appointmentId);

    /**
     * 查询咨询预约列表
     *
     * @param appointment 咨询预约
     * @return 咨询预约集合
     */
    public List<Appointment> selectAppointmentList(Appointment appointment);

    /**
     * 新增咨询预约
     *
     * @param appointment 咨询预约
     * @return 结果
     */
    public int insertAppointment(Appointment appointment);

    /**
     * 修改咨询预约
     *
     * @param appointment 咨询预约
     * @return 结果
     */
    public int updateAppointment(Appointment appointment);

    /**
     * 删除咨询预约
     *
     * @param appointmentId 咨询预约主键
     * @return 结果
     */
    public int deleteAppointmentByAppointmentId(Long appointmentId);

    /**
     * 批量删除咨询预约
     *
     * @param appointmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppointmentByAppointmentIds(Long[] appointmentIds);
}
